<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use \dmstr\bootstrap\Tabs;

$this->title = '充值';

$this->title = '余额操作';
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => '用户 ' . (string)$model->user_id, 'url' => ['view', 'user_id' => $model->user_id]];
?>
<div class="giiant-crud blance-record-update">

    <div class="box box-info">
        <div class="box-header with-border">
            <h3 class="box-title"><?='用户 ' . (string)$model->user_id ?></h3>
        </div>
        <div class="box-body">
            <div class="blance-record-form">
                <?php
                $form        = ActiveForm::begin([
                            'id'                     => 'BlanceRecord',
                            'layout'                 => 'horizontal',
                            'enableClientValidation' => true,
                            'errorSummaryCssClass'   => 'error-summary alert alert-error'
                                ]
                );
                ?>

                <div>
                    <?php echo $form->errorSummary($model); ?> 
                    <div class="box-body">

                        <?= $form->field($model, 'value1')->textInput(['maxlength' => true]) ?>
                        <?= $form->field($model, 'value2')->textInput(['maxlength' => true]) ?>
                        <?= $form->field($model, 'value3')->textInput(['maxlength' => true]) ?>

                        <?= $form->field($model, 'memo')->textarea() ?>

                        <div class="form-group">
                            <div class="col-sm-6 col-lg-offset-3"> 
                                <?= Html::a('<span class="fa fa-arrow-left"></span> ' . '取消', \yii\helpers\Url::previous(), ['class' => 'btn btn-default btn-sm']) ?>
                                <?= Html::submitButton('<span class="fa fa-check"></span> 确定', ['class' => 'btn btn-success btn-sm']); ?>
                            </div>
                        </div>
                    </div>
                    
                    <?php ActiveForm::end(); ?>
                </div>
            </div>
        </div>
    </div>
</div>
